﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace NextInventory.Model.Menufacturer
{
    public class MenufacturerModel : BaseViewModel
    {
        public int MenufacturerId { get; set; }
        [Display(Name="Name")]
        [Required(ErrorMessage="Name is required.")]
        public string Name { get; set; }
        [Display(Name="Phone")]
        [Required(ErrorMessage="Phone number is required.")]
        public string Phone { get; set; }
        [Display(Name="Email")]
        [Required(ErrorMessage="Email is required.")]
        [DataType(DataType.EmailAddress)]
        public string Email { get; set; }
        [Display(Name="Address")]
        [Required(ErrorMessage="Address is required.")]
        public string Address { get; set; }
        [Display(Name="City")]
        [Required(ErrorMessage="City is required.")]
        public string City { get; set; }
        [Display(Name="Country")]
        [Required(ErrorMessage="Country is required.")]
        public string Country { get; set; }

        //public List<string> Countries { get; set; }

        //public MenufacturerModel()
        //{
        //    Countries = new List<string>();
        //}
    }
}